package gw.spider.spider001;

import java.net.MalformedURLException;
import java.net.URL;
import java.util.ArrayList;
import java.util.HashMap;

import gw.common.tool.HtmlOperation;
import gw.common.tool.tools;

public class App {
	public static void main(String[] args) throws MalformedURLException {
		HashMap<String, Integer> hashMap = new HashMap<>();
		String originalUrl = "http://www.codeceo.com/article/8-java-search-engine.html";
//		while(HtmlOperation.urlDetector(tools.ReadStringFromUrl(originalUrl)).size()!=0)
		ArrayList<String> urls = HtmlOperation.urlDetector(tools.ReadStringFromUrl(originalUrl));
		
		while(size >= 0)
		{
			
		}
		
		
		ArrayList<String> allurls = gw.common.tool.HtmlOperation.urlDetector(body);
		
		for(String url : allurls)
		{
			System.out.println(url);
		}
		
		
	}
}
